package models

//https://cloud.baidu.com/doc/OCR/s/rk3h7xzck
type DataOcrIdcardBase struct {
	ImageStatus string `json:"image_status"`
	Direction int64 `json:"direction"`
	IdcardNumberType int64 `json:"idcard_number_type"`
	Name string `json:"name"`
	IdNum string `json:"id_num"`
	Gender string `json:"gender"`
	Birth string `json:"birth"`
	Minzu string `json:"minzu"`
	Addr string `json:"addr"`
	Issue string `json:"issue"`
	IssueDate string `json:"issue_date"`
}

//检测头像
type DataOcrIdcardPhonto struct {
	DataOcrIdcardBase
	Photo string `json:"photo"`
	PhoneLoction Location `json:"phone_loction"`
}

//检测身份证风险类型
type DataOcrIdcardRisk struct {
	DataOcrIdcardBase
	RiskType string `json:"risk_type"`
	EditTool string `json:"edit_tool"`
}

//全部
type DataOcrIdcardAll struct {
	DataOcrIdcardBase
	RiskType string `json:"risk_type"`
	EditTool string `json:"edit_tool"`
	Photo string `json:"photo"`
	PhoneLoction Location `json:"phone_loction"`
}

type Location struct {
	Width float64 `json:"width"`
	Height float64 `json:"height"`
	Top float64 `json:"top"`
	Left float64 `json:"left"`
}